<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePortalTagTable extends Migration
{
    /**
     * 标签
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('portal_tag', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->tinyInteger('site_id', false, true)->default(0)->comment('站点编号 默认 0:单站点;');
            $table->tinyInteger('type', false, true)->default(0)->comment('标签类型 默认值:0;');
            $table->char('name', '50')->comment('标签名称');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('portal_tag');
    }
}
